package com.harry.helloserviceapi.service;


import com.harry.helloserviceapi.dto.User;
import org.springframework.web.bind.annotation.*;

/**
 * @author Harry
 * @date 2018/3/28 17:09
 */
@RequestMapping("refactor")
public interface HelloService {


    @RequestMapping("/hello4")
    String hello(@RequestParam("name") String name);

    @RequestMapping("/hello5")
    User hello(@RequestHeader("name") String name, @RequestHeader("age") Integer age);

    @RequestMapping(value = "/hello6",method = RequestMethod.POST)
    String hello(@RequestBody User user);

}
